package com.tulele.vtool.service.impl;

import com.tulele.vtool.mapper.ImportUsersMapper;
import com.tulele.vtool.model.ImportUsersInfo;
import com.tulele.vtool.service.ImportUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImportUsersServiceImpl implements ImportUsersService {

    @Autowired
    private ImportUsersMapper importUsersMapper;

    @Override
    public List<ImportUsersInfo> queryByNickName(String gzh, String nickName) {
        return importUsersMapper.queryByNickName(gzh,nickName);
    }

    @Override
    public int updateUserState(Integer userId, Integer id) {
        return importUsersMapper.updateUserState(userId,id);
    }

    @Override
    public int updateRefererState(Integer refererId, Integer userState){
        return importUsersMapper.updateRefererState(refererId,userState);
    }


}
